package com.mdd.admin.service.order;

import com.mdd.admin.validate.order.ReturnCarRecordCreateValidate;
import com.mdd.admin.validate.order.ReturnCarRecordSearchValidate;
import com.mdd.admin.validate.order.ReturnCarRecordUpdateValidate;
import com.mdd.admin.vo.order.ReturnCarRecordDetailVo;
import com.mdd.admin.vo.order.ReturnCarRecordListedVo;
import com.mdd.common.base.page.PageValidate;
import com.mdd.common.core.PageResult;

/**
 * 还车记录服务接口类
 * @author LikeAdmin
 */
public interface IReturnCarRecordService {

    /**
     * 还车记录列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<OrderReturncarRecordListedVo>
     */
    PageResult<ReturnCarRecordListedVo> list(PageValidate pageValidate, ReturnCarRecordSearchValidate searchValidate);

    /**
     * 还车记录详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return OrderReturncarRecordDetailVo
     */
    ReturnCarRecordDetailVo detail(Long id);

    /**
     * 还车记录新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(ReturnCarRecordCreateValidate createValidate);

    /**
     * 还车记录编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(ReturnCarRecordUpdateValidate updateValidate);

    /**
     * 还车记录删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Long id);

}
